﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UpYun.Storage.Model
{
    /// <summary>
    /// 目录读取结果
    /// </summary>
    public class ReadDirectoryResult
    {
        /// <summary>
        /// 文件
        /// </summary>
        public List<FilesModel> Files { get; set; }

        /// <summary>
        /// 返回下一次分页开始位置。它由一串 Base64 编码的随机数组成，当它是 g2gCZAAEbmV4dGQAA2VvZg 时，表示最后一个分页
        /// </summary>
        public string Iter { get; set; }

        /// <summary>
        /// 是否最后一页
        /// </summary>
        public bool IsLastPage
        {
            get
            {
                return this.Iter == "g2gCZAAEbmV4dGQAA2VvZg";
            }
        }
    }


}
